const { screen } = require("electron").remote;

const screenInfoBtn = document.getElementById("screen-info");
const size = screen.getPrimaryDisplay().size;
const workAreaSize = screen.getPrimaryDisplay().workAreaSize;

screenInfoBtn.addEventListener("click", () => {
  const message = `当前屏幕是: ${size.width}px x ${size.height}px；工作区域尺寸是:  ${workAreaSize.width}px x ${workAreaSize.height}px`;
  document.getElementById("got-screen-info").innerHTML = message;
});
